package vip.xiaonuo.biz.core.config;

import edu.stanford.nlp.pipeline.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.Properties;

@Configuration
@Component
public class NlpConfig {

    @Bean
    public StanfordCoreNLP stanfordCoreNLP() {
        Properties props = new Properties();
        props.setProperty("annotators", "tokenize,ssplit");
        return new StanfordCoreNLP(props);
    }
}